<!DOCTYPE html >
<html lang="en" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>首页</h1>
<p>hello,shiro!</p>
<hr>
<div th:if="${session.loginUser==null}">
    <a th:href="@{/toLogin}">登录</a>
</div>
<div shiro:hasAnyPermissions="user:add">
    <a th:href="@{/user/add}">新增</a>
</div>
<div shiro:hasAnyPermissions="user:update">
    <a th:href="@{/user/update}">修改</a>
</div>
</body>
</html>
